#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"
void NDprint(SLnode* phead)
{
	while (phead)
	{
		printf("%d->", phead->data );
		phead = phead->next;
	}
}
void test01()
{
	SLnode *node1 = (SLnode*)malloc(sizeof(SLnode));
	node1->data = 1;
	SLnode* node2 = (SLnode*)malloc(sizeof(SLnode));
	node2->data = 2;
	SLnode* node3 = (SLnode*)malloc(sizeof(SLnode));
	node3->data = 3;
	SLnode* node4 = (SLnode*)malloc(sizeof(SLnode));
	node4->data = 4;
	node1->next = node2;
	node2->next = node3;
	node3->next = node4;
	node4->next = NULL;
	SLnode* phead = node1;
	SLPushBack(&phead, 1);
	SLPushfront(&phead, 2);
	SLPopback(&phead);
	SLPopfront(&phead,1);
	SLnode*pfind=SLfind(&phead, 10);
	NDprint(phead);
}
int main()
{
	test01();
}